package com.inphase.asset.contrller.api;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.Clock;
import java.util.Date;

/**
 * @author xiaob@inphase.com
 * @date 2017/9/21
 */

@RestController
public class ApiController {

    @RequestMapping("/now")
    public Long now(){

        Clock clock = Clock.systemUTC();

        if(true){
            throw new RuntimeException("e");
        }
        return  clock.millis();
    }
}
